//
// Created by 谢哲 on 2021/4/18.
//

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    string s, tmp;
    while(cin >> tmp)
        s += tmp;

    // 11
    int a = 0, b = 0;

    for (auto p: s) {
        if (p == 'W') {
            ++a;
        }
        else if (p == 'E') {
            break;
        }
        else {
            ++b;
        }
        if ((a>=11 || b>=11) && abs(a-b) >= 2) {
            cout << a << ":" << b << "\n";
            a = 0;
            b = 0;
        }
    }
    cout << a << ":" << b << "\n\n";

    a = 0;
    b = 0;

    for (auto p: s) {
        if (p == 'W') {
            ++a;
        }
        else if (p == 'E') {
            break;
        }
        else {
            ++b;
        }
        if ((a>=21 || b>=21) && abs(a-b) >= 2) {
            cout << a << ":" << b << "\n";
            a = 0;
            b = 0;
        }
    }
    cout << a << ":" << b << "\n";

    return 0;
}